package cn.nawang.ebeim.api.comm;

import java.util.List;

/**
 * @ClassName: PageList
 * @Description: TODO
 * @author 许炜毅
 * @date 2015年8月5日 下午4:54:44
 * @version v1.0
 */
public class PageList<T> {

  //分页对象
  private Pages page;
  //数据集合
  private List<T> objList;
  //返回状态码
  private int code;
  //操作描述
  private String desc;
  private boolean success;
  
  public Pages getPage() {
    return page;
  }
  
  public void setPage(Pages page) {
    this.page = page;
  }

  public List<T> getObjList() {
    return objList;
  }

  public void setObjList(List<T> objList) {
    this.objList = objList;
  }

  public int getCode() {
    return code;
  }

  public void setCode(int code) {
    this.code = code;
  }

  public String getDesc() {
    return desc;
  }

  public void setDesc(String desc) {
    this.desc = desc;
  }

  public boolean isSuccess() {
    return success;
  }

  public void setSuccess(boolean success) {
    this.success = success;
  }

  @Override
  public String toString() {
    return "PageList [page=" + page + ", objList=" + objList + ", code=" + code + ", desc=" + desc
        + ", success=" + success + "]";
  }
}
